﻿using System;
using DistributeTransaction.Utils;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.VisualStudio.TestTools.UnitTesting.Web;

namespace DistributeTransaction.Tests
{
    /// <summary>
    ///This is a test class for StringUtilTest and is intended
    ///to contain all StringUtilTest Unit Tests
    ///</summary>
    [TestClass]
    public class StringUtilTest
    {
        [TestMethod()]
        public void ContainsIgnoreCaseTest()
        {
            Assert.IsTrue(StringUtil.ContainsIgnoreCase("abcdefgh", "abCDef"));
            Assert.IsFalse(StringUtil.ContainsIgnoreCase("abcdefgh", "abC1Def"));
        }

        [TestMethod()]
        public void IsNumberTest()
        {
            Assert.IsTrue(StringUtil.IsNumber("1234567890"));
            Assert.IsFalse(StringUtil.IsNumber("abc0987"));
        }
    }
}
